import App from '../App'
import Login from '../component/swk/Login'//导入登录组件
import Home from '../component/zrf/Home'


import Job from '../component/ysh/Job'
import Search from '../component/ysh/Search'
import Detail from '../component/ysh/Detail'
import Outcome from "../component/ysh/Outcome"
import Position from "../component/ysh/Position"
import MoreHotCompany from "../component/ysh/MoreHotCompany"
import MoreRecommed from "../component/ysh/MoreRecommed"
import MoreVacancy from "../component/ysh/MoreVacancy"


import Release from '../component/jsn/Release'
import Message from '../component/ssb/Messag'
import My from '../component/zj/My'
import Main from "../component/jsn/Main"
import ChatMes from '../component/ssb/component/chatMessage/ChatMes'



import Xx from '../component/zj/Xx'
import Bji from '../component/zj/Bji'
import Pz from '../component/zj/Pz'
import { Navigate, createBrowserRouter } from 'react-router-dom'
import Permissions from '../component/swk/Permissions'//导入权限组件
import Show from '../component/swk/Show'//导入展示组件
import Register from '../component/swk/Register'//导入注册组件
import ResetPassword from '../component/swk/ResetPassword'//导入重置密码组件
const router = createBrowserRouter([
    {
        path: '/',
        element: <Navigate to='/show'></Navigate>
    }, {
        path: '/login',
        element: <Login></Login>
    },
    {
        path: '/register',
        element: <Register></Register>
    },
    {
        path: '/show',
        element: <Show></Show>
    },
    {
        path: '/resetpassword',
        element: <ResetPassword></ResetPassword>
    },
    {
        path: '/app',
        element: <Permissions><App></App></Permissions>,
        children: [
            {
                path: '/app',
                element: <Navigate to='/app/home'></Navigate>
            },
            {
                path: '/app/home',
                element: <Home></Home>
            },
            {
                path: '/app/job',
                element: <Job></Job>
            },
            {
                path: '/app/search',
                element: <Search></Search>
            },
            {
                path: '/app/detail',
                element: <Detail></Detail>
            },
            {
                path: '/app/release',
                element: <Release></Release>
            },
            {
                path: '/app/message',
                element: <Message></Message>
            },
            {
                path: '/app/my',
                element: <My></My>
            },
        ]
    },
    {
        //公司岗位搜索
        path: '/search',
        element: <Search></Search>
    },
    {
        //公司岗位详情
        path: '/detail',
        element: <Detail></Detail>,
    },
    {
        //搜索结果
        path: "/outcome",
        element: <Outcome></Outcome>
    },
    {
        //公司岗位搜索
        path: '/position',
        element: <Position></Position>
    },
    {
        //更多热门公司
        path: '/morehotcompany',
        element: <MoreHotCompany></MoreHotCompany>
    },
    {
        //更多为你推荐
        path: '/morerecommed',
        element: <MoreRecommed></MoreRecommed>
    },
    {
        //更多空缺职位
        path: '/morevacancy',
        element: <MoreVacancy></MoreVacancy>
    },
    {
        path: '/chatmes',
        element: <ChatMes></ChatMes>
    },
    {
        path: '/app/my/xx',
        element: <Xx></Xx>
    },
    {
        path: '/app/my/bji',
        element: <Bji></Bji>
    },
    {
        path: '/app/my/pz',
        element: <Pz></Pz>
    }, {
        path: '/chatmes',
        element: <ChatMes></ChatMes>
    }
])
export default router